<?php

// Check to ensure this file is included in Joomla!

defined('_JEXEC') or die();

jimport( 'joomla.application.component.view');

class DetaiViewDonvi_edit extends JView
{
	function display($tpl = null)
	{
		global $mainframe;
		
		$db		=& JFactory::getDBO();
		$uri 	=& JFactory::getURI();
		$model	=& $this->getModel();
		$document =& JFactory::getDocument();

		$item	=& $this->get('data');
		$isNew		= ($item->id < 1);
		if ($isNew)
		{
			$item->published = 1;
			$item->home = 0;
			$item->name = '';
		}
		
		// hinh thuc
		$lists = array();
		
		$this->assignRef('item',$item);
		$this->assignRef('lists',$lists);
		
		parent::display($tpl);
	}
	
}
?>